import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class vidas here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class vidas extends Monos
{
    /**
     * Act - do whatever the vidas wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
   int reg,vida;
    public vidas(int dato)
    {
        reg=dato;
       // setImage("numero"".png");
       
    }
    
    /**
     * Metodo Act coloca el numero de vidas de cada mono
     * @param No recibe 
     */
    public void act() 
    {
        // Add your action code here.
        Mundo w= (Mundo) super.getWorld();
       if(reg==1)
       setImage("numero"+w.V+".png");
       
       if(reg==2)
       setImage("numero"+w.VR+".png");
       
       if(reg==3)
       setImage("numero"+w.V2+".png");
       
       if(reg==4)
       setImage("numero"+w.V2R+".png");
       
       if(reg==5)
       setImage("numero"+w.V3+".png");
       
       if(reg==6)
       setImage("numero"+w.V3R+".png");
        //System.out.println(vida);*/
    }    
}
